import {getTemp, getAssessment} from '@/api/chat.js'
const actions = {
  async getTemp ({commit}) {
    let temp = await getTemp()
    commit('updateAssessment', temp)
  },
  async getAssessment ({commit}, id) {
    let assessment = await getAssessment(id)
    commit('setAssessment', assessment)
  }
}

export default actions
